package io.renren.modules.app.dao;
import io.renren.modules.app.entity.TZnmhAppVersion;
import io.renren.modules.app.entity.TZnmhAppVersionRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface TZnmhAppVersionRoleDao{
	/**
	 * 获得TZnmhAppVersionRole数据的总行数
	 * @return
	 */
    long getTZnmhAppVersionRoleRowCount();
	/**
	 * 获得TZnmhAppVersionRole数据集合
	 * @return
	 */
    List<TZnmhAppVersionRole> selectTZnmhAppVersionRole();
	/**
	 * 获得一个TZnmhAppVersionRole对象,以参数TZnmhAppVersionRole对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    TZnmhAppVersionRole selectTZnmhAppVersionRoleByObj(TZnmhAppVersionRole obj);
	/**
	 * 通过TZnmhAppVersionRole的id获得TZnmhAppVersionRole对象
	 * @param id
	 * @return
	 */
    TZnmhAppVersionRole selectTZnmhAppVersionRoleById(String id);
	/**
	 * 插入TZnmhAppVersionRole到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertTZnmhAppVersionRole(TZnmhAppVersionRole value);
	/**
	 * 插入TZnmhAppVersionRole中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyTZnmhAppVersionRole(TZnmhAppVersionRole value);
	/**
	 * 批量插入TZnmhAppVersionRole到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertTZnmhAppVersionRoleByBatch(List<TZnmhAppVersionRole> value);
	/**
	 * 通过TZnmhAppVersionRole的id删除TZnmhAppVersionRole
	 * @param id
	 * @return
	 */
    int deleteTZnmhAppVersionRoleById(String id);
	/**
	 * 通过TZnmhAppVersionRole的id更新TZnmhAppVersionRole中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateTZnmhAppVersionRoleById(TZnmhAppVersionRole enti);
	/**
	 * 通过TZnmhAppVersionRole的id更新TZnmhAppVersionRole中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyTZnmhAppVersionRoleById(TZnmhAppVersionRole enti);

    List<TZnmhAppVersion> getVersionRole();

}